package com.zerone.pay.trade.service.order;

import com.acooly.core.common.facade.OrderBase;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.NotBlank;

/**
 * @author 木鱼 muyu@yiji.com
 * @version 2017/4/19
 */
@Data
@EqualsAndHashCode
public class TradeCreateOrder extends OrderBase {

    /**
     * 外部交易号
     * 此订单号与partnerId做了唯一约束
     */
    @NotBlank
    private String outOrderNo;

    @NotBlank
    private String amount;

    @NotBlank
    private String payMethod;


    private String memo;

    @NotBlank
    private String userId;

    private String ip;


    @Override
    public void check() {
        super.check();
    }
}
